package com.xca.znb.model.imodel;

import com.xca.znb.entity.Collect;
import com.xca.znb.entity.Goods;
import com.xca.znb.entity.Local;
import com.xca.znb.entity.NewsLetter;
import com.xca.znb.entity.User;

public interface IGoodsDetail {
    Goods getGoodsById(int id) ;
    User getUserByPhone(String phone) ;

    void addNewsletter(String phone1 , String phone2 , String time);
    NewsLetter getNewsLetterByPhone(String phone1 , String phone2);
    int getLocalDefaultId(String phone);

    void addCollect(String gId , String type , String user);
    void delCollect(int id) ;
    Collect getCollect(String gId , String type , String user);
    void addCart(int goodsId , int num , String user);
}
